package com.esm.pdawms.model;

import java.util.ArrayList;

import zuo.biao.library.base.BaseModel;

/*

{"code":1,"msg":"ok","time":"1668558231","data":[{"num":"3","name":"扫码枪_KS","ph":"002"},{"num":"5","name":"扫码枪_KS","ph":"20211109"}]}
 */
//入库货品编码
public class Hprkcode extends BaseModel {

    private static final long serialVersionUID = 1L;

    int num = 0;//小标数
    String name = "";//名称
    String ph = "";//批号
    String hk = "";//
    String hpcode = "";
    float onenum = 0;//总数

    public Hprkcode() {
        //default
    }
    public Hprkcode(String hk, String name, String ph) {
        this.name = name;
        this.ph = ph;
        this.hk = hk;
    }

    public String getHpcode() {
        return hpcode;
    }

    public void setHpcode(String hpcode) {
        this.hpcode = hpcode;
    }

    public float getOnenum() {
        return onenum;
    }

    public void setOnenum(float onenum) {
        this.onenum = onenum;
    }

    public String getHk() {
        return hk;
    }

    public void setHk(String hk) {
        this.hk = hk;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPh() {
        return ph;
    }

    public void setPh(String ph) {
        this.ph = ph;
    }

    @Override
    protected boolean isCorrect() {//根据自己的需求决定，也可以直接 return true
        return id > 0;// && StringUtil.isNotEmpty(phone, true);
    }

}
